import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'api/crmCustVisitDw/addOrSave',
    method: 'post',
    data
  })
}

export function del(ids) {
  return request({
    url: 'api/crmCustVisitDw/',
    method: 'delete',
    data: ids
  })
}

export function edit(data) {
  return request({
    url: 'api/crmCustVisitDw/addOrSave',
    method: 'post',
    data
  })
}

export function exportDe(data) {
  return request({
    url: 'api/crmCustVisitDw/export',
    method: 'post',
    data
  })
}

export function importDe(data) {
  return request({
    url: 'api/crmCustVisitDw/import',
    method: 'post',
    data
  })
}
export function getUserTripDetail(params) {
  return request({
    url: '/api/crmCustVisit/getUserTripDetail',
    method: 'get',
    params
  })
}

export function queryAll(params) {
  return request({
    url: '/api/reportSalesmanTrace/queryAll',
    method: 'get',
    params
  })
}

export function queryDetail(params) {
  return request({
    url: '/api/reportSalesmanTrace/queryDetail',
    method: 'get',
    params
  })
}
export function loadOut(params) {
  return request({
    url: '/api/reportSalesmanTrace/export',
    method: 'get',
    params
  })
}



export default { add, edit, exportDe, importDe, del, getUserTripDetail }
